package com.example.demo.tools;

public class UnderlineToCamelTools {
	
	public static void main(String[] args) {
		
		String[] arr = {"a_c_"};
		for (int i = 0,len =arr.length; i < len; i++) {
			System.out.println(underlineToCamel(arr[i]));
		}
		
	}
	
	public static  String underlineToCamel(String str) {
		str=str.replace("_a","A");
		str=str.replace("_b","B");
		str=str.replace("_c","C");
		str=str.replace("_d","D");
		str=str.replace("_e","E");
		str=str.replace("_f","F");
		str=str.replace("_g","G");
		str=str.replace("_h","H");
		str=str.replace("_i","I");
		str=str.replace("_j","J");
		str=str.replace("_k","K");
		str=str.replace("_l","L");
		str=str.replace("_m","M");
		str=str.replace("_n","N");
		str=str.replace("_o","O");
		str=str.replace("_p","P");
		str=str.replace("_q","Q");
		str=str.replace("_r","R");
		str=str.replace("_s","S");
		str=str.replace("_t","T");
		str=str.replace("_u","U");
		str=str.replace("_v","V");
		str=str.replace("_w","W");
		str=str.replace("_x","X");
		str=str.replace("_y","Y");
		str=str.replace("_z","Z");
		str=str.replace("_","");
		return str;
	}

}
